package com.j2eefast.flowable.bpm.utils.listener;

import cn.hutool.core.lang.Dict;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.j2eefast.common.core.utils.BeanUtil;
import com.j2eefast.flowable.bpm.entity.ProjectSanLianEntity;
import com.j2eefast.flowable.bpm.mapper.SanLianMapper;
import org.springframework.beans.BeanUtils;

public class SanlianListener extends AnalysisEventListener<ProjectSanLianEntity> {

    private SanLianMapper sanLianMapper;
    public SanlianListener(SanLianMapper sanLianMapper) {
        this.sanLianMapper = sanLianMapper;
    }

    //一行一行读取
    @Override
    public void invoke(ProjectSanLianEntity projectSanLianEntity, AnalysisContext analysisContext) {
        sanLianMapper.insert(projectSanLianEntity);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
